package annotationTest.MethodAnno;

import java.lang.reflect.Method;

public class MethodAnnotationTest {
	
	public static void main(String[] args) {
		A a=new A();
		Method[] methods=a.getClass().getDeclaredMethods();
		for(Method method:methods)
		{
			if(method.isAnnotationPresent(MethodAnnotation.class))
			{
				System.out.println("method=  "+method);
				System.out.println("author=  "+method.getAnnotation(MethodAnnotation.class).author());
			}
		}
	}
	
}
